package org.jsola.hr.query;


import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.query.BaseQuery;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
public class HrEmployeeSalaryQuery extends BaseQuery {

    @ApiParam(value = "id", required = true)
    @NotNull(message = "id不能为空")
    private String id;

    @ApiParam(value = "类型")
    private String type;

    @ApiParam(value = "姓名/手机号/身份证号")
    private String nameOrPhoneOrIdCard;

    @ApiParam(value = "员工状态")
    private Integer empStatus;

    @ApiParam(value = "年")
    private Integer yearly;

    @ApiParam(value = "月")
    private Integer monthly;

    @ApiParam(value = "分页参数，每页的条数", example = "20")
    @Max(value = 1000, message = "pageSize不能大于1000")
    private Integer pageSize = 20;

    @ApiParam(value = "分页参数，第几页", example = "1")
    @Min(value = 1, message = "pageNo不能小于1")
    private Integer pageNo = 1;

    @ApiParam(value = "客户明细Ids")
    private List<Long> customerDetailsIdList;

}
